<?php

namespace App\Models\School;

use Illuminate\Database\Eloquent\Model;

class Report extends Model
{
    protected $table = 'jxt_school_class_report';

    protected $primaryKey = 'class_report_id';

    public function user()
    {
        return $this->hasOne( Student::Class,'student_id','student_id')->select(['student_id','name_class']);
    }

    public function group()
    {
        return $this->hasOne( Group::Class,'class_group_id','class_group_id')->select(['class_group_id','class_group_name']);
    }


}
